]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
theme: don't parse the default stylesheet twice
authorGiovanni Campagna <gcampagna@src.gnome.org>
Sat, 25 May 2013 12:59:09 +0000 (14:59 +0200)
committerGiovanni Campagna <gcampagna@src.gnome.org>
Tue, 6 Aug 2013 14:08:36 +0000 (16:08 +0200)
If we don't have a custom theme, set the stylesheet as the
default only, so we don't parse it twice.

js/ui/main.js

index 1bd61b794aa473bc0509bd1b4d505052e30248bb..17f05e17e5eb11d48d8d2f8f7a222c18d21d4a3a 100644 (file)
@@ -260,11 +260,7 @@ function loadTheme() {
     let themeContext = St.ThemeContext.get_for_stage (global.stage);
     let previousTheme = themeContext.get_theme();
 
-    let cssStylesheet = _defaultCssStylesheet;
-    if (_cssStylesheet != null)
-        cssStylesheet = _cssStylesheet;
-
-    let theme = new St.Theme ({ application_stylesheet: cssStylesheet,
+    let theme = new St.Theme ({ application_stylesheet: _cssStylesheet,
                                 default_stylesheet: _defaultCssStylesheet });
 
     if (previousTheme) {